//
//  JUImageRequestProtocol.h
//  JUImageGalleryDemo
//
//  Created by Ju on 15/8/20.
//  Copyright (c) 2015年 juwenz. All rights reserved.
//

#import <UIKit/UIKit.h>

#ifndef JUImageGalleryDemo_JUImageRequestProtocol_h
#define JUImageGalleryDemo_JUImageRequestProtocol_h

typedef NS_ENUM(NSInteger, JUImageGalleryImageFromType) {
    JUImageGalleryImageFromServer,
    JUImageGalleryImageFromLocalPath,
    JUImageGalleryImageFromBundle
};

typedef NS_ENUM(NSInteger, JUImageGalleryImageIndicatorType) {
    JUImageGalleryImageIndicatorNone,
    JUImageGalleryImageIndicatorText,
    JUImageGalleryImageIndicatorPageControl
};

@protocol JUImageRequestDelegate <NSObject>

- (void)requsetImageWithImageURI:(NSString *)imageURI successCallback:(void (^)(id request,UIImage *image))successHandler failureCallback:(void (^)(id request,NSString *error))failureHandler;

- (void)cancelAllRequest;

- (void)cancelRequestWithImageURI:(NSString *)imageURI;

- (NSString *)currentImageUrl;

- (NSString *)cachePath;


@end

#endif
